#!/usr/bin/python
# -*- coding: GBK -*-
import math

def GetAngle(x1,y1,x2,y2):
    angle = 0
    if x1 == x2 and y1 == y2:
        return -1
    if y2 >= y1:
        angle = math.acos((x2-x1)/math.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)))
    else:
        angle = -math.acos((x2-x1)/math.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)))
    return int(((angle + math.pi/2)*180/math.pi)%360)

euctStay=0   
euctRollLeft=1  
euctRollRight=2 
euctMove=3    
euctUsePart=4 
euctLeftMove=5
euctRightMove=6
euctDownMove=7